# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=cloc
pkgver=1.94
pkgrel=0
pkgdesc="Count lines of code"
url="https://github.com/AlDanial/cloc"
arch="noarch"
license="GPL-2.0-or-later Artistic-2.0"
depends="perl perl-algorithm-diff perl-regexp-common
	perl-parallel-forkmanager"
subpackages="$pkgname-doc"
source="https://github.com/AlDanial/cloc/releases/download/v$pkgver/cloc-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver/Unix"

build() {
	make
}

check() {
	make
}

package() {
	make DESTDIR="$pkgdir" install

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
	install -Dm644 NEWS README AUTHORS \
		"$pkgdir"/usr/share/doc/$pkgname/
}

sha512sums="
97760bd902bc4139d45a4a9b4e9b82762f4b58b82a07884d4a0f3a618ceb07cad82bbde1b0ecf48152615535a0c77875bbee7c8bb8358389c2993ca2e2319c66  cloc-1.94.tar.gz
"
